package com.efast.dmom.mgmt.dao.les;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.efast.dmom.mgmt.entity.les.TtWhmMaterialReceive;
import com.efast.dmom.mgmt.utils.Assist;
public interface TtWhmMaterialReceiveDao{
	/**
	 * 获得TtWhmMaterialReceive数据的总行数,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    long getTtWhmMaterialReceiveRowCount(Assist assist);
	/**
	 * 获得TtWhmMaterialReceive数据集合,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    List<TtWhmMaterialReceive> selectTtWhmMaterialReceive(Assist assist);
	/**
	 * 获得一个TtWhmMaterialReceive对象,以参数TtWhmMaterialReceive对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    TtWhmMaterialReceive selectTtWhmMaterialReceiveByObj(TtWhmMaterialReceive obj);
	/**
	 * 通过TtWhmMaterialReceive的id获得TtWhmMaterialReceive对象
	 * @param id
	 * @return
	 */
    TtWhmMaterialReceive selectTtWhmMaterialReceiveById(Integer id);
	/**
	 * 插入TtWhmMaterialReceive到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertTtWhmMaterialReceive(TtWhmMaterialReceive value);
	/**
	 * 插入TtWhmMaterialReceive中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyTtWhmMaterialReceive(TtWhmMaterialReceive value);
	/**
	 * 批量插入TtWhmMaterialReceive到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertTtWhmMaterialReceiveByBatch(List<TtWhmMaterialReceive> value);
	/**
	 * 通过TtWhmMaterialReceive的id删除TtWhmMaterialReceive
	 * @param id
	 * @return
	 */
    int deleteTtWhmMaterialReceiveById(Integer id);
	/**
	 * 通过辅助工具Assist的条件删除TtWhmMaterialReceive
	 * @param assist
	 * @return
	 */
    int deleteTtWhmMaterialReceive(Assist assist);
	/**
	 * 通过TtWhmMaterialReceive的id更新TtWhmMaterialReceive中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateTtWhmMaterialReceiveById(TtWhmMaterialReceive enti);
 	/**
	 * 通过辅助工具Assist的条件更新TtWhmMaterialReceive中的数据,包括null值
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateTtWhmMaterialReceive(@Param("enti") TtWhmMaterialReceive value, @Param("assist") Assist assist);
	/**
	 * 通过TtWhmMaterialReceive的id更新TtWhmMaterialReceive中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyTtWhmMaterialReceiveById(TtWhmMaterialReceive enti);
 	/**
	 * 通过辅助工具Assist的条件更新TtWhmMaterialReceive中属性不为null的数据
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNonEmptyTtWhmMaterialReceive(@Param("enti") TtWhmMaterialReceive value, @Param("assist") Assist assist);
}